<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<head>
		<title>			
		</title>	
	</head>
	<body>
		<ui:composition template="/Template/template01.xhtml">
			<ui:define name="body">
				<h:form id="listForm">				
				<h:inputHidden id="method"></h:inputHidden>	
				
				
				<table width="95%" border="0" cellpadding="0" cellspacing="0" class="TablaBody1">					  
						<tr>
					    	<td colspan="2" align="right" class="CelTop">
					    	<h:graphicImage library="images" name="transp.gif" id="visa"  width="1" height="1"/>
					    	</td>
					    	<td width="6%" rowspan="3" align="right" valign="middle">&nbsp;</td>
					  	</tr>
						<tr>
							<td width="3%" height="10" align="right">
							<h:graphicImage library="images" name="flechanaranja.gif" id="img3"  width="11" height="13"/>
							</td>
						    <td width="91%" >
								<span class="TextoTitulosBlack">
							    	#{message.menuAdministracion}:
							    </span>
							    <span class="TextoTitulos">
							      	#{message.listsol}
							      </span>
						    </td>
						</tr>
						<tr>
						    <td height="19" align="right" class="CelUnder">&nbsp;</td>
						    <td class="TextoTitulos">&nbsp;</td>
						</tr>
					</table>
					
					<table width="101%" border="0" cellpadding="0" cellspacing="0" class="TablaBody1">
						<tr>
						    <td width="25" class="celBodyLeft"></td>
						    <td width="771">
						    	<table width="85%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td valign="bottom" class="TextoTitulo2">
									    	
									    </td>
									</tr>  
						    	</table>
								<table width="85%">
									<tr>
										<td>    
										
										<h:panelGroup rendered="#{solicitud.requestsD == '[]'}"> 
											<span style="padding-left: 50%;">#{message.nodata}</span>
										</h:panelGroup>	
										
										<h:panelGroup rendered="#{solicitud.requestsD != '[]'}"> 
											<h:dataTable id="data" value="#{solicitud.requestsD}" 
														 var="u" rows="50" border="0" cellpadding="0" cellspacing="1"
														 styleClass="TablaFondo2Listado" binding="#{solicitud.dataTable}">
												
												<h:column id="c00" >
													<f:facet name="header">														
										                												
													</f:facet>
													
													 	<div id="L34" align="center">
													 		
																<h:commandLink actionListener="#{solicitud.processDetail}" action="#{solicitud.processAction}" value="Aprobar" rendered="#{container.vcType == '2' and u.vcState == '2'}"/>
																<h:commandLink actionListener="#{solicitud.processDetail}" action="#{solicitud.processAction}" value="Solicitar ejecucion" rendered="#{container.vcType == '2' and u.solicitar == '1'}"/>
																<h:commandLink actionListener="#{solicitud.processDetail}" action="#{solicitud.processAction}" value="Consultar" rendered="#{container.vcType == '3' and u.revisar != '1'}"/>
																<h:commandLink actionListener="#{solicitud.processDetail}" action="#{solicitud.processAction}" value="Revisar caso de prueba" rendered="#{container.vcType == '3' and u.revisar == '1'}"/>
																<h:commandLink actionListener="#{solicitud.processDetail}" action="#{solicitud.processAction}" value="Ver solicitud" rendered="#{container.vcType == '4' and u.vcState == '1'}"/>
																<h:commandLink actionListener="#{solicitud.processDetail}" action="#{solicitud.processAction}" value="Editar requerimiento" rendered="#{container.vcType == '4' and u.vcState == '3'}"/>
																<h:commandLink actionListener="#{solicitud.processDetail}" action="#{solicitud.processAction}" value="Administrar casos de prueba" rendered="#{container.vcType == '4' and u.vcState == '5'}"/>
																<h:commandLink actionListener="#{solicitud.processDetail}" action="#{solicitud.processAction}" value="Asignar Recurso" rendered="#{container.vcType == '1' and (u.asignar == '1' or u.asignar2 == '1' or u.vcState == '4')}"/>
																<h:commandLink actionListener="#{solicitud.processDetail}" action="#{solicitud.processAction}" value="Ver solicitud" rendered="#{container.vcType == '1' and (u.asignar != '1' and u.asignar2 != '1' and u.vcState != '4')}"/>
																
														</div>
													
												</h:column>
												
												<h:column id="c01xyz">
													<f:facet name="header">														
										                	Id													
													</f:facet>
													<h:outputText id="v01xyz" value="#{u.inIdsolicitud}" styleClass="FondoCel3"/>
													
												</h:column>
												
												<h:column id="c01">
													<f:facet name="header">														
										                	#{message.tipo}													
													</f:facet>
													<h:outputText id="v01" value="OS" rendered="#{u.vcType == '1'}" styleClass="FondoCel3"/>
													<h:outputText id="v002" value="SAI" rendered="#{u.vcType == '2'}" styleClass="FondoCel3"/>
													
												</h:column>
												
												<!-- Comercio -->
									 
												<h:column id="c02" >
													<f:facet name="header">														
										                		#{message.numero}							
													</f:facet>
													<h:outputText id="v02" value="#{u.vcNumber}" styleClass="FondoCel3"/>
												</h:column>	
												
												
												<h:column id="c04">
													<f:facet name="header">														
										                		#{message.estado}											
													</f:facet>							
													<h:outputText id="v0x" value="Registrado" rendered="#{u.vcState == '1'}" styleClass="FondoCel3"/>
													<h:outputText id="v1x" value="Por revisar" rendered="#{u.vcState == '2'}" styleClass="FondoCel3"/>
													<h:outputText id="v2x" value="Observado" rendered="#{u.vcState == '3'}" styleClass="FondoCel3"/>
													<h:outputText id="v3x" value="Aprobado" rendered="#{u.vcState == '4'}" styleClass="FondoCel3"/>
													<h:outputText id="v4x" value="Asignado" rendered="#{u.vcState == '5'}" styleClass="FondoCel3"/>
																									
												</h:column>
												<h:column id="c05" >
													<f:facet name="header">														
										               		#{message.fecreg}										
													</f:facet>
													<h:outputText id="v05" value="#{u.dtRegistry}" styleClass="FondoCel3">
														<f:convertDateTime pattern="#{message.dateFormat}" timeZone="#{message.timeZone}"/>
													</h:outputText>
												</h:column>
											</h:dataTable>	
										</h:panelGroup>
										</td>
									</tr>
							  	</table>										      
      							<p></p>
      						</td>
						</tr>
					</table>
					<table width="85%" border="0" cellpadding="0" cellspacing="0">
			             <tr class="FondoCel3" id="B35">
				            <td align="right">
				            	<h:commandButton id="abcdefzz" actionListener="#{solicitud.crearSolicitud}" action="#{solicitud.processAction}" value="Crear Solicitud" rendered="#{container.vcType == '2'}" styleClass="botonmediano"/>
				            </td>
				          </tr>  
			        </table>
					
				
				</h:form>
			</ui:define>
		</ui:composition>
	</body>	
</html>